<template>
  <div id="app">
    <div class="head">
      <router-link exact to='/'>首页</router-link>
      <router-link to="/Detail">详情</router-link>
       <router-link to="/User">用户</router-link>
    </div>
    <div class="box1">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
.head{
   width: 1200px;
   margin:0 auto;
   background: blue;
   height: 50px;
   color: #fff;
}
.head a{
    color: #fff;
}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.box1{
  width: 1200px;
  margin:10px auto 0;
  border: 1px solid red;
  height: 800px;
}
.head a.router-link-active {
  color: red
}
.router-link-exact-active{
   color: red
}
</style>
